package com.easy.life.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easy.life.common.R;
import com.easy.life.entity.RoomEntity;
import com.easy.life.po.RoomInfo;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 
 *
 * @author xuhbin
 * @email a2712136826@qq.com
 * @date 2021-02-27 14:51:15
 */
public interface RoomService extends IService<RoomEntity> {


    R searchRoom(String city, Integer type,Long userId);

    R publishRoom(RoomInfo roomInfo);

    R searchRoomByUser(Long id);

    R recommendRoom(String location, Integer pageNum, Integer pageSize,Long userId);

    R setPriceById(Long id, BigDecimal price);
}

